#include "rasterScanDemo.h"


int main(int argc, char **argv)
{
  
  /* give user file name feedback */
  printf("\n\nFile Path Given: %s\n", argv[1]);

  /* init rasterScan with file name input from user */
  initRasterScan(argv[1]);

  /* show initial image */
  printRasterScanMatrix();

  /* start the autorasterScan sequence */
  if(3 == argc)
  {
    if('A' == *argv[2])
    {
      startAutoRasterScan(RASTERSCAN_DISPLAY_RASTERSCAN_ANIMATION);
    }
    else
    {
      startAutoRasterScan(RASTERSCAN_DISPLAY_END);
    }
  }
  else
  {
    startAutoRasterScan(RASTERSCAN_DISPLAY_END);
  }


  /* output the display to user */
  printf("Total Number of Pixels: %d\n\n", rasterScanGetNumberOfPixels());

  /* print labeled matrix */
  printRasterScanMatrix();

  /* release memory */
  deallocRasterScan();

  return 0;
}
